// MySocket.cpp : implementation file
//

#include "stdafx.h"

#include "..\MFCSocket_Client\MFCSocketDlg_Client.h"
#include "MySocket.h"

// MySocket

MySocket::MySocket()
{
}

MySocket::~MySocket()
{
}


// MySocket member functions

void MySocket::OnAccept(int nErrorCode)
{
	// TODO: Add your specialized code here and/or call the base class

	CSocket::OnAccept(nErrorCode);
}

void MySocket::OnReceive(int nErrorCode)
{
	char buff[1000];
	int br=Receive(buff,1000);
	buff[br]='\0';

	//((CMFCSocketDlg_Client)hwnd).SocketReceiveMessage(buff);
	//((CMFCSocketDlg_Client *)pDlg)->SocketReceiveMessage(buff);

	CSocket::OnReceive(nErrorCode);
}
